﻿using UnityEditor;
using UnityEngine;

[CustomEditor(typeof(ResetTransform))]
public class ResetTransformEditor : Editor 
{
	ResetTransform script;
	private void OnEnable()
	{
		script = target as ResetTransform;
	}

	public override void OnInspectorGUI()
	{
		GUI.enabled = false;
		base.OnInspectorGUI();
		GUI.enabled = true;
		if(GUILayout.Button("更新",GUILayout.MinHeight(50)))
		{
			script.UpdateTransform();
		}
	}

}
